<?php

class AlertaController extends AweController
{
    /**
     * @var string the default layout for the views. Defaults to '//layouts/column2', meaning
     * using two-column layout. See 'protected/views/layouts/column2.php'.
     */
    public $layout = '//layouts/column2';

    public function filters()
    {
        return array(
            array('CrugeAccessControlFilter'),
        );
    }
    

    /**
     * Manages all models.
     */
    public function actionAdmin()
    {
        $model = new Alerta('search');
        $model->unsetAttributes(); // clear any default values
        
        if(isset($_GET['Alerta']))
            $model->attributes = $_GET['Alerta'];

        $this->render('admin', array(
            'model' => $model,
        ));
    }
    
   
}
